package com.tianji.learning.controller;

import com.tianji.learning.domain.vo.SignResultVO;
import com.tianji.learning.service.ISignRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Yandel
 * @date 2025/5/26 下午8:50
 * @description: 签到接口
 */
@Api(tags = "签到接口")
@RestController
@RequestMapping("/sign-records")
@RequiredArgsConstructor
public class SignRecordController {

    private final ISignRecordService signRecordService;
    @ApiOperation("签到")
    @PostMapping
    public SignResultVO addSignRecords() {
      return   signRecordService.addSignRecords();
    }



    @ApiOperation("查询签到记录")
    @GetMapping
    public Byte[] querySignRecords() {
        return signRecordService.querySignRecords();
    }
}
